%module beanstalkcli
%{
#include "beanstalk_api.h"
%}

typedef enum Status {
	BS_STATUS_OK            = 0,
	BS_STATUS_FAIL          = -1,
	BS_STATUS_EXPECTED_CRLF = -2,
	BS_STATUS_JOB_TOO_BIG   = -3,
	BS_STATUS_DRAINING      = -4,
	BS_STATUS_TIMED_OUT     = -5,
	BS_STATUS_NOT_FOUND     = -6,
	BS_STATUS_DEADLINE_SOON = -7,
	BS_STATUS_BURIED        = -8,
	BS_STATUS_NOT_IGNORED   = -9,
} Status;


%newobject ClientPool::create;

%include "std_string.i"
%include "beanstalk_api.h"

